import store from '@/store'

// form
// 默认表单对象
export const defaultForm = {
  numbers: '',
  numberType: 1
}

// 表单项配置
export const formBase = [
  {
    label: '类型',
    type: 'select',
    field: 'numberType',
    required: true,
    optionsKey: 'label',
    optionsValue: 'value',
    options: [
      {
        label: '快递单号',
        value: 1
      },
      {
        label: '集包单号',
        value: 2
      },
      {
        label: '集运ID',
        value: 3
      },
      {
        label: '支付码',
        value: 4
      },
      {
        label: '淘宝订单号',
        value: 5
      },
      {
        label: '清关单号',
        value: 6
      }
    ],
  },
  {
    label: '单号',
    type: 'input',
    field: 'numbers',
  }
]

export const formItemStyle = {
  paddingLeft: '20px',
  margin: 0
}

// table
// 单元格样式
export const cellStyle = {
  background: 'rgba(28, 155, 252, 0.02)',
  color: 'rgb(142, 155, 185)',
  textAlign: 'center',
}

// 表头单元格样式
export const headerCellStyle = {
  background: 'rgba(28, 155, 252, 0.02)',
  color: 'rgb(142, 155, 185)',
  textAlign: 'center'
}

// 表格内表单子样式
export const tableFormStyle = {
  marginBottom: 0
}

// 表格项配置
export const tableBase = [
  {
    label: '订单id',
    prop: 'id'
  },
  {
    label: '订单号',
    prop: 'orderNo',
    width: 150
  },
  {
    label: '快递单号',
    prop: 'courierNumber',
    width: 150
  },
  {
    label: '转运单号',
    prop: 'transferOrderNumber'
  },
  {
    label: '仓库',
    prop: 'warehouseName'
  },
  {
    label: '会员ID',
    prop: 'userId'
  },
  {
    label: '会员名称',
    prop: 'userName'
  },
  {
    label: '品类',
    prop: 'cargoType'
  },
  {
    label: '尺寸',
    prop: 'cargoDimensions'
  },
  {
    label: '上架时间',
    prop: 'shelfTime'
  },
  {
    label: '上架人',
    prop: 'shelfEmployee'
  },
  {
    label: '库位',
    prop: 'locationName'
  },
  {
    label: '状态',
    prop: 'status'
  },
  {
    label: '超长费',
    prop: 'extraFee'
  },
  {
    label: '下单时间',
    prop: 'createTime'
  },
  {
    label: '订单重量',
    prop: 'weight'
  },
  {
    label: '费用',
    prop: 'totalPrice'
  },
  {
    label: '快递公司',
    prop: 'companyName'
  },
  {
    label: '付款方式',
    prop: 'paymentMethod'
  },
  {
    label: '收件人',
    prop: 'recipient'
  },
  {
    label: '收件手机',
    prop: 'phone'
  },
  {
    label: '收件地址',
    prop: 'address'
  },
  {
    label: '目的地',
    prop: 'destination'
  },
  {
    label: '店铺',
    prop: 'ownedStore'
  },
  {
    label: '品名',
    prop: 'cargoName'
  }
]
